<?php
    $adv_list = $this->requestAction(array('controller'=>'advs','action'=>'adv_list'));  
    echo "<table cellpadding=0 cellspacing=3 width='300px'>";
        echo "<tr><td><hr color='#aaa'></td><td width='95px' align='right'><span class='info'>----Iklan----</span></td></tr>";
        if(@$adv_list)
        {
            foreach($adv_list as $data)
            {
                echo "<tr><td colspan=2><center>".$html->link($html->image('../'.$data['Adv']['image'],array('class'=>'adv')),$data['Adv']['link'],array(),false,false )."</center></td></tr>";
            }
        }
    echo "</table>";
    
    
 ?>